const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  name: { type: String },
  gender: { type: String },
  address: { type: String },
  start_time: { type: String },
  dev_time: [{ type: String }, { type: String }],
  education: { type: String },
  job_add: { type: String },
  job: { type: String },
  tel: { type: String },
  area: { type: String },
  town: { type: String },
  vill: { type: String },
  group: { type: String },
  vill_job: { type: String },
  nation: { type: String },
  id_card: { type: String },
  desc: { type: String },
  src:  [{
    name: { type: String },
    url: { type: String },
  }],
})

module.exports = mongoose.model('Party', schema)